# -*- coding: utf-8 -*-

from core.viewset import CustomModelViewSet
from apps.sys.models import Config
from apps.sys.config.serializers import *
from apps.sys.config.filters import *


class ConfigViewSet(CustomModelViewSet):
    """
    系统配置接口
    list:查询
    create:新增
    update:修改
    retrieve:详情
    destroy:删除
    """

    queryset = Config.objects.all()
    serializer_class = ConfigSerializer
    filterset_class = ConfigFilterSet
